import java.util.Iterator;
import java.util.List;
import java.util.Random;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.ie.InternetExplorerDriver;


public class gettingtabledata {

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static int randomRowNumber() {
		
			Random row = new Random(); 
			int randomRownumber = row.nextInt(5)+1;
			if(randomRownumber <= 0){
				randomRownumber = randomRownumber+2;
			}
			
			if (randomRownumber == 1){
				randomRownumber = randomRownumber+1;
			}

			System.out.println("the random number is "+ randomRownumber);

			return randomRownumber;
		}
	 

	public static int randomColumnNumber() {
		
		Random column = new Random(); 
		int randomColumnnumber = column.nextInt(7)+1;
		if(randomColumnnumber <= 0){
			randomColumnnumber = randomColumnnumber+2;
		}
		
		if (randomColumnnumber == 1){
			randomColumnnumber = randomColumnnumber+1;
		}

		System.out.println("the random number is "+ randomColumnnumber);

		return randomColumnnumber;
	}
 
	
	
	
	
	public static void main(String[] args) throws Exception {
		// TODO Auto-generated method stub
		
		randomRowNumber();
      randomColumnNumber();
}
}
